package com.un.ebs.inventory.dto;

import com.un.ebs.core.enums.BooleanEnum;
import com.un.ebs.inventory.enums.InventoryTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2020-05-23
 */
@Data
public class InventoryNoteAddDto {

    @NotNull(message = "仓库不能为空。")
    private String warehouseId;

    //@NotNull(message = "请指定业务类别")
    private String noteTypeId;

    private String relationNoteId;

    private String relationNoteTypeId;

    private String relationNoteCode;

    private String contractCode;

    @Deprecated
    private InventoryTypeEnum type;

    /**
     * 根据此此获得noteTypeId
     */
    private InventoryTypeEnum noteType;

    private String personnelId;

    private String remark;

    private Boolean submitStatus = false;

    private Boolean isRebuild = false;

    @NotNull
    private List<InventoryNoteItemDto> items;

}